package test.xml.entity;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("table")
public class Table {
	@XStreamAsAttribute()
	private String id;
	@XStreamAsAttribute()
	private String tablename;// 表名
	@XStreamAsAttribute()
	private String prefixname;// 表前缀名
	@XStreamAsAttribute()
	private int count;// 分几张表
	@XStreamAsAttribute()
	private String tablefield;// 分表字段

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTablename() {
		return tablename;
	}

	public void setTablename(String tablename) {
		this.tablename = tablename;
	}

	public String getPrefixname() {
		return prefixname;
	}

	public void setPrefixname(String prefixname) {
		this.prefixname = prefixname;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public String getTablefield() {
		return tablefield;
	}

	public void setTablefield(String tablefield) {
		this.tablefield = tablefield;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Table [id=");
		builder.append(id);
		builder.append(", tablename=");
		builder.append(tablename);
		builder.append(", prefixname=");
		builder.append(prefixname);
		builder.append(", count=");
		builder.append(count);
		builder.append(", tablefield=");
		builder.append(tablefield);
		builder.append("]");
		return builder.toString();
	}
	
}
